/* 
 * File:   Lock.h
 * Author: pkv
 *
 * Created on August 6, 2011, 8:22 PM
 * 
 * Simple RAII wrapper for SLB mutex mechanism.
 */

#ifndef LOCK_H
#define	LOCK_H

#include "Mutex.h"

class Lock 
{
public:
    Lock(Mutex &mutex);
    ~Lock();
    
private:
    Mutex *_mutex;
    
    // Copying is not allowed
    Lock(Lock const&);
    void operator=(Lock const&);
};

#endif	/* LOCK_H */

